import 'competitor.dart';

class GameCompetitor {
  Competitor? competitor;

  GameCompetitor({this.competitor});

  factory GameCompetitor.fromJson(Map<String, dynamic> json) {
    return GameCompetitor(
      competitor: json['Competitor'] == null
          ? null
          : Competitor.fromJson(json['Competitor'] as Map<String, dynamic>),
    );
  }

  Map<String, dynamic> toJson() => {
        'Competitor': competitor?.toJson(),
      };
}
